body {
    margin: 0;
    padding: 20px;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 30px;
    text-align: center;
    color: white;
    position: relative;
}

.header h1 {
    margin: 0 0 20px 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    margin: 0 auto;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.user-details {
    text-align: left;
}

.username {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-level, .money {
    font-size: 0.9em;
    opacity: 0.9;
}

.statistics-section {
    padding: 40px;
    background: #f8f9fa;
}

.statistics-section h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 2em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.total {
    border-left: 5px solid #3498db;
}

.stat-card.success {
    border-left: 5px solid #27ae60;
}

.stat-card.rate {
    border-left: 5px solid #f39c12;
}

.stat-card.streak {
    border-left: 5px solid #e74c3c;
}

.stat-icon {
    font-size: 2.5em;
    width: 60px;
    text-align: center;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.filter-section {
    padding: 30px 40px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.filter-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.filter-controls {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-group label {
    font-weight: bold;
    color: #495057;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #6c757d;
}

.filter-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.filter-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #667eea;
}

.history-section {
    padding: 40px;
}

.history-section h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 2em;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.history-item:hover {
    transform: translateY(-3px);
}

.history-item.success {
    border-left: 5px solid #27ae60;
}

.history-item.failed {
    border-left: 5px solid #e74c3c;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.record-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9em;
}

.time-icon {
    font-size: 1.1em;
}

.record-result {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
}

.record-result.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.record-result.failed {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.record-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.materials-section, .recipe-section, .result-section, .cost-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.materials-section h4, .recipe-section h4, .result-section h4, .cost-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
}

.material-icon {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.material-name {
    flex: 1;
    font-weight: bold;
}

.material-count {
    color: #6c757d;
}

.recipe-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.recipe-icon {
    font-size: 1.5em;
}

.recipe-name {
    flex: 1;
    font-weight: bold;
    color: #2c3e50;
}

.recipe-level {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.result-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
}

.result-item.legendary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #8b4513;
}

.result-item.epic {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
}

.result-item.rare {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.item-icon {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.item-name {
    flex: 1;
    font-weight: bold;
}

.item-count {
    color: #6c757d;
}

.item-quality {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
}

.failure-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    color: #e74c3c;
}

.reason-icon {
    font-size: 1.2em;
}

.cost-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.9em;
}

.cost-icon {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.cost-label {
    flex: 1;
    font-weight: bold;
}

.cost-value {
    color: #e74c3c;
    font-weight: bold;
}

.record-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9em;
}

.experience-gain {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f39c12;
    font-weight: bold;
}

.exp-icon {
    font-size: 1.1em;
}

.record-id {
    color: #6c757d;
    font-size: 0.8em;
}

.empty-history {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 1em;
    opacity: 0.8;
}

.analysis-section {
    padding: 40px;
    background: #f8f9fa;
}

.analysis-section h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 2em;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.analysis-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.analysis-card h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-recipes, .best-profits {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-item, .profit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.active-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hour-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.hour-time {
    width: 50px;
    font-weight: bold;
    color: #2c3e50;
}

.hour-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.hour-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.hour-count {
    width: 40px;
    text-align: right;
    color: #6c757d;
}

.footer {
    padding: 40px;
    background: #2c3e50;
    color: white;
}

.tips-section h3 {
    margin: 0 0 20px 0;
    color: #667eea;
    text-align: center;
    font-size: 1.5em;
}

.tips-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.tips-section li {
    padding: 12px 0;
    border-bottom: 1px solid #34495e;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
}

.tips-section li:before {
    content: "💡";
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.tips-section li:last-child {
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .record-content {
        grid-template-columns: 1fr;
    }
    
    .record-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .record-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
}